package Cantella::DJabberd::Model::Admin::RosterItem;

use Reaction::InterfaceModel::ObjectClass;

class RosterItem, which {

  has roster_groups =>
    (
     clearer        => '_clear_roster_groups',
     domain_model   => '_roster_item_store',
     is             => 'ro',
     isa            => 'Cantella::DJabberd::Model::Admin::RosterGroup::Collection',
     lazy           => 1,
     orig_attr_name => 'roster_groups',
     required       => 1,
     default => sub {
       my $rs = shift->_roster_item_store->roster_groups;
       Cantella::DJabberd::Model::Admin::RosterGroup::Collection->new( _source_resultset => $rs);
     },
    );


};

1;
